<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>updateEmployee</title>
</head>
<body>
    <h2>updateEmployee</h2>
    <hr>

    <form th:action="@{/employee}" method="post">
        <input type="hidden" name="_method" value="put">
        <input type="hidden" name="id" th:value="${employee.id}">
        姓名：<input type="text" name="name" th:value="${employee.name}"><br>
        性别：<input type="radio" name="gender" value="男" th:field="${employee.gender}">男
             <input type="radio" name="gender" value="女" th:field="${employee.gender}">女<br>
        邮箱：<input type="text" name="email" th:value="${employee.email}"><br>
        <input type="submit" value="update">
    </form>
</body>
</html>